package com.luhuiguo.cms.client.ui;

import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.luhuiguo.cms.client.GlobalConstants;
import com.luhuiguo.cms.client.GlobalMessages;
import com.luhuiguo.cms.client.presenter.SettingsPresenter;

@Singleton
public class SettingsView extends ContentPanel implements SettingsPresenter.Display {

    @SuppressWarnings("unused")
    private GlobalConstants constants;

    @SuppressWarnings("unused")
    private GlobalMessages messages;

    @Inject
    public SettingsView(GlobalConstants constants, GlobalMessages messages) {

        this.constants = constants;
        this.messages = messages;

        this.setHeading(messages.settings());


    }

    @Override
    public Widget asWidget() {
        return this;
    }

}
